package ar.edu.uba.fi.jmit.sender.mock;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import ar.edu.uba.fi.jmit.integrationcommons.Message;
import ar.edu.uba.fi.jmit.sender.MessageChannel;
import ar.edu.uba.fi.jmit.sender.exception.SenderException;

public class MessageChannelMock implements MessageChannel {
	
	private List<Message> sentMessages = new LinkedList<Message>();

	@Override
	public void send(Message message) {
		sentMessages.add(message);
	}

	public List<Message> getSentMessages() {
		return sentMessages;
	}

	@Override
	public void configure(Map<String, String> destinationProperties)
			throws SenderException {
	}

}
